package com.qf.service.impl;

import com.qf.entity.Emp;
import com.qf.entity.OrderVO;
import com.qf.mapper.EmpMapper;
import com.qf.mapper.OrderMapper;
import com.qf.service.EmpService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Qiao
 * @date 2025/8/8
 * @desc
 */
@Service
public class EmpServiceImpl implements EmpService {
    @Autowired
    private EmpMapper empMapper;
    @Override
    public Emp select(int empno) {
        return empMapper.select(empno);
    }

    @Override
    public boolean add(Emp emp) {
        return empMapper.add(emp);
    }

    @Override
    public boolean delete(int empno) {
        return empMapper.delete(empno);
    }

    @Override
    public boolean update(Emp emp) {
        return empMapper.update(emp);
    }

    @Override
    public List<Emp> selectAll() {
        return empMapper.selectAll();
    }


}
